package io.fluentlenium.kotest.matchers.config

import io.fluentlenium.adapter.kotest.FluentStringSpec
import io.fluentlenium.utils.UrlUtils

abstract class MatcherBase(
    body: FluentStringSpec.() -> Unit = {},
) : FluentStringSpec(body) {
    fun goToFile(file: String) = goTo(UrlUtils.getAbsoluteUrlFromFile(file))

    init {
        beforeTest {
            goToFile("index.html")
        }
    }
}
